﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iLangl.BusinessModel.DAL;

namespace iLangl.BusinessModel.Managers
{
	public class UserManager
	{
		#region Singelton Pattern
		private UserManager()
		{
		}

		private static UserManager instance;
		private static object mutex = new object();
		/// <summary>
		/// The instance of the WokrAreaManager.
		/// </summary>
		public static UserManager Instance
		{
			get
			{
				if (instance == null)
				{
					lock (mutex)
					{
						if (instance == null)
						{
							instance = new UserManager();
						}
					}
				}
				return instance;
			}
		}
		#endregion

		public User GetUser(String companyId)
		{
			 return DALFacade.Instance.UserDAL.GetUser(companyId);
		}

	}
}
